quartz: Don't use the instancetype keyword
authorMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2015 17:26:01 +0000 (13:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2015 17:26:01 +0000 (13:26 -0400)
gdkcursor-quartz.c uses the instancetype keyword, which doesn't seem to
be supported in the version of Objective C that Snow Leopard uses.
Replacing that keyword with the thing it represents makes it build.

Patch by Ryan Hendrickson,
http://bugzilla.gnome.org/show_bug.cgi?id=756770

gdk/quartz/gdkcursor-quartz.c

index f371e2371c46351fb17bd86102283db6c69a8add..3f587dbae1a887f0dc1ac1d4d1240a90040f09f3 100644 (file)
@@ -300,7 +300,7 @@ _gdk_quartz_display_get_cursor_for_surface (GdkDisplay      *display,
 }
 
 #define CUSTOM_CURSOR_CTOR(name, id) \
-       + (instancetype)name \
+       + (gdkCoreCursor *)name \
        { \
                gdkCoreCursor *obj; \
                obj = [self new]; \